package com.test.ws.s1.service.imp;

import com.test.ws.s1.bean.Sc;
import com.test.ws.s1.service.ScService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;

@Service
public class ScServiceImp implements ScService {
    @Autowired
    private com.test.ws.s1.mapper.ScDao ScDao;

    @Override
    public int insertSc(Sc sc) {
        return ScDao.insertSc(sc);
    }

    @Override
    public Sc selectSc(Sc sc) {
        return ScDao.selectSc(sc);
    }

    @Override
    public ArrayList<Sc> selectAllSc(Sc sc) {
        return ScDao.selectAllSc(sc);
    }

    @Override
    public int deleteSc(Sc sc) {
        return ScDao.deleteSc(sc);
    }
}
